xen: credit: (micro) optimize csched_runq_steal().
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 7 Apr 2017 16:56:38 +0000 (18:56 +0200)
committerGeorge Dunlap <george.dunlap@citrix.com>
Fri, 7 Apr 2017 17:17:39 +0000 (18:17 +0100)
commitafb077334f6c225bc2eaa3885a09d3dedb381c87
tree83eca7551b077f210f198b62fe573693ba83e092
parentc95ac0ad200d17db2d3ac8f0845d2158a369495c
xen: credit: (micro) optimize csched_runq_steal().

Checking whether or not a vCPU can be 'stolen'
from a peer pCPU's runqueue is relatively cheap.

Therefore, let's do that  as early as possible,
avoiding potentially useless complex checks, and
cpumask manipulations.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit.c